﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Microsoft.Reporting.WebForms;
using Ewts.Code;

namespace Ewts.RDLC
{
    public partial class RubbishListRDLC : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                DataTable ds = new DataLib.BLL.LoadNum().GetLoadKH();

                //为列表绑定数据
                ReportDataSource rds = new ReportDataSource("rubbishDataList", ds);
                ReportViewer1.LocalReport.DataSources.Clear();
                ReportViewer1.LocalReport.DataSources.Add(rds);
                new RDLCPrinter().FillRow(ds, 3, 20, 20);
                ReportViewer1.LocalReport.Refresh();
            }
        }
    }
}